﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AlibabaCollector {
   public class DetailConfig {
       public static Dictionary<string, string> GetDetailConfig() {
           Dictionary<string, string> detailFields = new Dictionary<string, string>();

           detailFields.Add("货源类别", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[1]/td[2]");
           detailFields.Add("产地", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[1]/td[4]");
           detailFields.Add("货号", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[1]/td[6]");
           detailFields.Add("款式类别", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[2]/td[2]");
           detailFields.Add("风格", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[2]/td[4]");
           detailFields.Add("适合季节", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[2]/td[6]");
           detailFields.Add("图案", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[3]/td[2]");
           detailFields.Add("流行元素", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[3]/td[4]");
           detailFields.Add("适用年龄段", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[3]/td[6]");
           //detailFields.Add("主图来源", "");
           //detailFields.Add("上市年份/季节", "");
           //detailFields.Add("面料名称", "//*[@id=\"mod-detail-attributes\"]/div[1]/table/tbody/tr[4]/td[6]");
           //detailFields.Add("主面料成分", "");
           //detailFields.Add("主面料成分的含量", "");
           //detailFields.Add("颜色", "");

           //detailFields.Add("尺码", "//*[@id=\"mod-detail-attributes\\"]/div[1]/table/tbody/tr[6]/td[2]");
           //detailFields.Add("是否跨境货源", "");
           //detailFields.Add("适合年龄", "");
           //detailFields.Add("服装风格", "");
           //detailFields.Add("风格类型", "");

           return detailFields;
       }

    }
}
